from selenium.webdriver.common.by import By


class  RegisterLocator:

    #email_input
    email_input=(By.CSS_SELECTOR,'[id="email"]')

    #发送邮件按钮
    send_button=(By.XPATH,"//button[contains(@class,'veriButton')]")

    #邮件loadingicon
    send_loading=(By.CSS_SELECTOR,'[data-icon="loading"]')

    #邮箱验证码
    email_verification=(By.CSS_SELECTOR,'[id="code"]')

    #新密码
    new_pwd=(By.CSS_SELECTOR,'[placeholder="Your password"]')

    #确认密码
    confirm_pwd=(By.CSS_SELECTOR,'[placeholder="Confirm your password"]')

    #下一步
    next_step_btn=(By.XPATH,"//button[contains(@class,'primary btn')]")

    #first_name_input
    first_name_input=(By.ID,'firstName')

    #lastname
    last_name_input=(By.ID,'lastName')

    # country
    country = (By.XPATH,'//*[@id="region"]/..')

    # country_text 取title的
    country_text = (By.XPATH,'//*[@id="region"]/../../span[2]')

    # country_china
    country_china = (By.XPATH,'//*[text()="China" and @class="antd4-select-item-option-content"]/..')

    #手机号码
    phone_number=(By.ID,'phoneNumber')

    #postcode
    post_code=(By.ID,'postCode')

    #state
    state=(By.ID,'state')

    #city
    city=(By.ID,'city')

    #address
    address=(By.ID,'address')

    #同意协议
    agree=(By.CSS_SELECTOR,'[class="antd4-checkbox-input"]')

    #注册确认
    confirm_register=(By.XPATH,"//button[contains(@class,'lg btn')]")

    #第二步接收短信验证码
    sms_verification_code=(By.CSS_SELECTOR,'[id="phoneVerifyCode"]')

    #register_success
    register_success=(By.CSS_SELECTOR,'[class="account-activation-title-first"]')

    #account_type
    account_type=(By.CSS_SELECTOR,'[class="antd4-card-meta-title"]')

    #active_button
    active_button=(By.CSS_SELECTOR,'[class="account-activation-button"]>button')

    #company_name_input
    company_name_input=(By.CSS_SELECTOR,'[id="companyName"]')

    #vat_number
    vat_number=(By.CSS_SELECTOR,'[id="taxNumber"]')

    #company_register_success
    company_register_success=(By.CSS_SELECTOR,'[class="success-page-msg-third"]')

    #approval_search_input
    approval_search_input=(By.CSS_SELECTOR,'[id="inputValue"]')

    # approval_search_input_button
    approval_search_input_button=(By.CSS_SELECTOR,'[class="antd4-input-group-addon"]>button')

    #registration_data
    registration_data=(By.CSS_SELECTOR,'[class="antd4-table-row antd4-table-row-level-0"]')

    #registration_tab
    registration_tab=(By.CSS_SELECTOR,'[path="/console/userRegistApproval"]')

    #approve_button
    approve_button=(By.CSS_SELECTOR,'[class="table-operation-btnLine-content"]')

    #reject_button
    reject_button=(By.XPATH,'//input[@value="REJECTED"]/..')

    #submit_button
    submit_button=(By.CSS_SELECTOR,'[class="cre-container-footer-primary"]>:nth-child(1)')

    #public_prompt
    public_prompt=(By.CSS_SELECTOR,'[class="ant-message-custom-content ant-message-success"]')

    #account_type_filter
    account_type_filter=(By.XPATH,'(//span[@class="anticon anticon-filter"])[1]')

    #enterprise_option
    enterprise_option=(By.XPATH,'(//span[@class="antd4-checkbox"])[2]')

    #filter_ok_button
    filter_ok_button=(By.CSS_SELECTOR,'[class="antd4-btn antd4-btn-primary antd4-btn-sm"]')
